package com.work.biz.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.work.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 学生对象 biz_student
 *
 * @author lee
 * @date 2021-04-22
 */
@ApiModel
public class BizStudent extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * 班级id
     */
    @NotNull(message = "班级ID不能为空")
    @ApiModelProperty(required = true, value = "班级ID")
    private Long classId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 学生学号
     */
   //@NotBlank(message = "学号不能为空")
    @ApiModelProperty(value = "学号")
    private String studentNo;

    /**
     * 学生姓名
     */
    //@NotBlank(message = "学生姓名不能为空")
    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    /**
     * 学生状态（0正常 1停用）
     */
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("studentId", getStudentId())
                .append("classId", getClassId())
                .append("userId", getUserId())
                .append("studentNo", getStudentNo())
                .append("studentName", getStudentName())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
